import os
import config_setting, util_path

def start(vault_root_folder_path):
    """
        清楚本次take snapshot的断点续传状态，以便重新开始本次下载
        """
    for dirpath, filename in util_path.travel_file(vault_root_folder_path, lambda dirpath, filename: filename.startswith(
            "resume_breakpoint_url_list.txt")):
        os.remove(os.path.join(dirpath, filename))
    print("done")


if __name__ == "__main__":
    vault_root_folder_path = config_setting.vault_root_folder_path  # "E:/WebArchivesVault"
    start(vault_root_folder_path)
